home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19951130-19960209 / 000191_news@columbia.edu _Thu Dec 28 00:21:18 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  5KB

  1. Return-Path: news@columbia.edu
  2. Received: from apakabar.cc.columbia.edu (apakabar.cc.columbia.edu [128.59.35.159]) by watsun.cc.columbia.edu (8.7.3/8.7.3) with ESMTP id AAA22137 for <kermit.misc@watsun>; Thu, 28 Dec 1995 00:21:17 -0500 (EST)
  3. Received: (from news@localhost) by apakabar.cc.columbia.edu (8.7.3/8.7.3) id AAA03786 for kermit.misc@watsun; Thu, 28 Dec 1995 00:21:14 -0500 (EST)
  4. Path: news.columbia.edu!sol.ctr.columbia.edu!news.uoregon.edu!news.dacom.co.kr!newsfeed.internetmci.com!vixen.cso.uiuc.edu!ux2.cso.uiuc.edu!shair
  5. From: rmshair@uiuc.edu (Bob Shair)
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: key mapping for IBM 3270 sessions !
  8. Date: 28 Dec 1995 05:02:18 GMT
  9. Organization: University of Illinois at Urbana
  10. Lines: 88
  11. Message-ID: <4bt8cq$bb6@vixen.cso.uiuc.edu>
  12. References: <4bt2gv$ap@gaia.ns.utk.edu>
  13. NNTP-Posting-Host: ux2.cso.uiuc.edu
  14. Originator: shair@ux2.cso.uiuc.edu
  15.  
  16. sad@utkux.utcc.utk.edu (Deutscher) writes:
  17.  
  18. >  i'd rather ask here first before I bother the authors of ckermit: I was
  19. >wondering whether someone knows how to map the Clear key needed for 3270
  20. >sessions to IBM mainframes (running VM/CMS), or, which key it defaults to?
  21. >The handbook does offer an automated login script which can b used to login
  22.  
  23. Stefan:
  24. Kermit doesn't directly emluate 3270s, so there are no kverbs corresponding
  25. to 3270-specific actions.  As the handbook states on p292, the connection 
  26. goes through a "protocol converter" which maps actions you do on your
  27. (emulated) ASCII terminal to the appropriate 3270 data stream, and vice 
  28. versa.
  29.  
  30. I usually emulate a vt220, and use a protocol converter named HCON,
  31. which expects ESC for Clear.  Other popular choices are ^L, ^Z, ^C
  32. and even BS (!).  You will need to get documentation for your protocol
  33. converter, see what it expects, and develop a script which maps them
  34. to the keys you with to press.
  35.  
  36. This is sufficiently complicated that some companies pay me substantial
  37. sums to do it for them.
  38.  
  39. As an example, I'm including my vt3270.ini file, which works for MY
  40. protocol converter.  It won't work for yours, but may give you ideas.
  41.  
  42. ; File: vt3270.220
  43. ; The following are the default anyway, corresponding to the startup states
  44. ; of the DEC cursor and auxilliary keypads.
  45.  
  46. set terminal arrow-keys cursor   ; Arrow keys are in cursor mode by default
  47. set terminal keypad-mode numeric ; DEC keypad in numeric mode by default
  48.  
  49. ;       Scan Definition   IBM PC Key                         IBM Key Group
  50. ;
  51. set key \315 \Kgold       ; PF1                              Top Rank F keys
  52. set key \316 \Kpf2        ; PF2                              Top Rank F keys
  53. set key \317 \Kpf3        ; PF3                              Top Rank F keys
  54. set key \318 \Kpf4        ; PF4                              Top Rank F keys
  55.  
  56. ; DEC Cursor keys
  57. ;
  58. set key \584 \KupArr      ; Up Arrow           Up Arrow         Cursor keypad
  59. set key \592 \KdnArr      ; Down Arrow         Down Arrow       Cursor keypad
  60. set key \589 \KrtArr      ; Right Arrow        Right Arrow      Cursor keypad
  61. set key \587 \KlfArr      ; Left Arrow         Left Arrow       Cursor keypad
  62.  
  63. ; Make F Keys what hcon expects for vt220 
  64. ;
  65. set key \319 \027Ou      ; PF5                               Top Rank F keys
  66. set key \320 \027[17~    ; PF6                               Top Rank F keys
  67. set key \321 \027[18~    ; PF7                               Top Rank F keys
  68. set key \322 \027[19~    ; PF8                               Top Rank F keys
  69. set key \323 \027[20~    ; PF9                               Top Rank F keys
  70. set key \324 \027[21~    ; PF10                              Top Rank F keys
  71. set key \389 \027[23~    ; PF11                              Top Rank F keys
  72. set key \390 \027[24~    ; PF12                              Top Rank F keys
  73.  
  74. ; Make ALT-F Keys PA Keys
  75. ;
  76. set key \360 \KdecRemove  ; PA1                         ALT  Top Rank F keys
  77. set key \361 \KdecNext    ; PA2                         ALT  Top Rank F keys
  78.  
  79. ; Set up the gray ins-pgdn keys
  80. ;
  81. set key \594 \KdecFind    ; Ins                         gray insert key
  82. set key \585 \027[18~     ; PF7                         gray PgUp key
  83. set key \644 \kupscn      ; upscan                      ctl PgUp key
  84. set key \593 \027[19~     ; PF8                         gray PgDn key
  85. set key \630 \kdnscn      ; downscan                    ctl PgDn key
  86. set key \591 \kdecPrev    ; erase EOF                   gray End key
  87. set key \629 \kendscn     ; endscan                     ctl End key
  88. set key \583 \KdecInsert  ; Home                        gray Home key
  89. set key \631 \khomscn     ; Homescan                    ctl Home key
  90.  
  91. ;Set keypad enter to new line
  92.  
  93. set key \525 \014
  94.  
  95.  
  96. It's hacked from ckovtk2.ini.  It doesn't mention Clear, because Kermit
  97. by default sends ESC for ESC, so that doesn't need changing.
  98. -- 
  99.  
  100. Bob Shair                          Open Systems Consultant
  101. 1018 W. Springfield Avenue         rmshair@uiuc.edu
  102. Champaign, IL 61821           217/356-2684